namespace ext.direct
{
	using System;
	using System.Runtime.CompilerServices;
	using System.Html;
	using System.Collections;
	
	
	/// <summary>Configuration Structure</summary>
	/// <definedin>src\direct\Provider.js</definedin>
	public sealed class Provider_Configuration : Record
	{
		
		#region Fields
		/// <summary>
		/// The unique id of the provider (defaults to an {@link Ext#id auto-assigned id}).
		/// You should assign an id if you need to be able to access the provider later and you do
		/// not have an object reference available, for example:
		/// 
		/// Ext.Direct.addProvider(
		/// {
		/// type: &apos;polling&apos;,
		/// url: &apos;php/poll.php&apos;,
		/// id: &apos;poll-provider&apos;
		/// }
		/// );
		///
		/// var p = {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#getProvider getProvider}(&apos;poll-provider&apos;);
		/// p.disconnect();
		/// </summary>
		/// <htmlSummary>
		/// The unique id of the provider (defaults to an {@link Ext#id auto-assigned id}).
		/// You should assign an id if you need to be able to access the provider later and you do
		/// not have an object reference available, for example:
		/// &lt;pre&gt;&lt;code&gt;
		/// Ext.Direct.addProvider(
		/// {
		/// type: &apos;polling&apos;,
		/// url: &apos;php/poll.php&apos;,
		/// id: &apos;poll-provider&apos;
		/// }
		/// );
		///
		/// var p = {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#getProvider getProvider}(&apos;poll-provider&apos;);
		/// p.disconnect();
		/// &lt;/code&gt;&lt;/pre&gt;
		/// </htmlSummary>
		/// <definedin>src\direct\Provider.js</definedin>
		[ScriptName("id")]
		public string Id;
		
		/// <summary>
		/// Priority of the request. Lower is higher priority, 0 means &quot;duplex&quot; (always on).
		/// All Providers default to 1 except for PollingProvider which defaults to 3.
		/// </summary>
		/// <htmlSummary>
		/// Priority of the request. Lower is higher priority, &lt;tt&gt;0&lt;/tt&gt; means &quot;duplex&quot; (always on).
		/// All Providers default to &lt;tt&gt;1&lt;/tt&gt; except for PollingProvider which defaults to &lt;tt&gt;3&lt;/tt&gt;.
		/// </htmlSummary>
		/// <definedin>src\direct\Provider.js</definedin>
		[ScriptName("priority")]
		public System.Number Priority;
		
		/// <summary>
		/// Required, undefined by default. The type of provider specified
		/// to {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#addProvider addProvider} to create a
		/// new Provider. Acceptable values by default are:   polling : {@link Ext.direct.PollingProvider PollingProvider}  remoting : {@link Ext.direct.RemotingProvider RemotingProvider}
		/// </summary>
		/// <htmlSummary>
		/// &lt;b&gt;Required&lt;/b&gt;, &lt;tt&gt;undefined&lt;/tt&gt; by default. The &lt;tt&gt;type&lt;/tt&gt; of provider specified
		/// to {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#addProvider addProvider} to create a
		/// new Provider. Acceptable values by default are:&lt;div class=&quot;mdetail-params&quot;&gt;&lt;ul&gt;
		/// &lt;li&gt;&lt;b&gt;&lt;tt&gt;polling&lt;/tt&gt;&lt;/b&gt; : {@link Ext.direct.PollingProvider PollingProvider}&lt;/li&gt;
		/// &lt;li&gt;&lt;b&gt;&lt;tt&gt;remoting&lt;/tt&gt;&lt;/b&gt; : {@link Ext.direct.RemotingProvider RemotingProvider}&lt;/li&gt;
		/// &lt;/ul&gt;&lt;/div&gt;
		/// </htmlSummary>
		/// <definedin>src\direct\Provider.js</definedin>
		[ScriptName("type")]
		public string Type;
		#endregion
		
		#region ext.util.Observable_Configuration Members
		/// <summary>
		/// A config object containing one or more event handlers to be added to this
		/// object during initialization. This should be a valid listeners config object as specified in the
		/// {@link #addListener} example for attaching multiple handlers at once.
		/// </summary>
		/// <htmlSummary>
		/// &lt;p&gt;A config object containing one or more event handlers to be added to this
		/// object during initialization. This should be a valid listeners config object as specified in the
		/// {@link #addListener} example for attaching multiple handlers at once.&lt;/p&gt;
		/// &lt;br&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;DOM events from ExtJs {@link Ext.Component Components}&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;
		/// &lt;br&gt;&lt;p&gt;While &lt;i&gt;some&lt;/i&gt; ExtJs Component classes export selected DOM events (e.g. &quot;click&quot;, &quot;mouseover&quot; etc), this
		/// is usually only done when extra value can be added. For example the {@link Ext.DataView DataView}&apos;s
		/// &lt;b&gt;&lt;code&gt;{@link Ext.DataView#click click}&lt;/code&gt;&lt;/b&gt; event passing the node clicked on. To access DOM
		/// events directly from a Component&apos;s HTMLElement, listeners must be added to the &lt;i&gt;{@link Ext.Component#getEl Element}&lt;/i&gt; after the Component
		/// has been rendered. A plugin can simplify this step:&lt;pre&gt;&lt;code&gt;
		/// // Plugin is configured with a listeners config object.
		/// // The Component is appended to the argument list of all handler functions.
		/// Ext.DomObserver = Ext.extend(Object, {
		/// constructor: function(config) {
		/// this.listeners = config.listeners ? config.listeners : config;
		/// },
		///
		/// // Component passes itself into plugin&amp;#39;s init method
		/// init: function(c) {
		/// var p, l = this.listeners;
		/// for (p in l) {
		/// if (Ext.isFunction(l[p])) {
		/// l[p] = this.createHandler(l[p], c);
		/// } else {
		/// l[p].fn = this.createHandler(l[p].fn, c);
		/// }
		/// }
		///
		/// // Add the listeners to the Element immediately following the render call
		/// c.render = c.render.{@link Function#createSequence createSequence}(function() {
		/// var e = c.getEl();
		/// if (e) {
		/// e.on(l);
		/// }
		/// });
		/// },
		///
		/// createHandler: function(fn, c) {
		/// return function(e) {
		/// fn.call(this, e, c);
		/// };
		/// }
		/// });
		///
		/// var combo = new Ext.form.ComboBox({
		///
		/// // Collapse combo when its element is clicked on
		/// plugins: [ new Ext.DomObserver({
		/// click: function(evt, comp) {
		/// comp.collapse();
		/// }
		/// })],
		/// store: myStore,
		/// typeAhead: true,
		/// mode: &apos;local&apos;,
		/// triggerAction: &apos;all&apos;
		/// });
		/// &lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;
		/// </htmlSummary>
		/// <definedin>src\ext-core\src\util\Observable.js</definedin>
		/// <optional>Optional Field</optional>
		[ScriptName("listeners")]
		public object Listeners;
		#endregion
	}
}
